package org.wu.framework.lazy.orm.database.lambda.stream.wrapper;

import org.wu.framework.lazy.orm.database.lambda.stream.condition.update.LambdaSetBeanBasicComparison;
import org.wu.framework.lazy.orm.database.lambda.stream.condition.update.LambdaSetBeanIgnoreEmptyBasicComparison;
import org.wu.framework.lazy.orm.database.lambda.stream.condition.update.LambdaSetValueBasicComparison;

/**
 * 更新设置数据
 */
public class LazySetValueWrappers {

    /**
     * describe lambdaWrapper
     *
     * @author Jia wei Wu
     **/
    public static <T> LambdaSetValueBasicComparison<T> lambdaWrapper() {
        return new LambdaSetValueBasicComparison<T>() {
        };
    }

    /**
     * describe wrapperBean
     *
     * @param bean 参数对象
     * @author Jia wei Wu
     * @date 2022/1/9 1:12 下午
     **/
    public static <T> LambdaSetValueBasicComparison<T> lambdaWrapperBean(T bean) {
        return new LambdaSetBeanBasicComparison<T>(bean) {
        };
    }

    /**
     * describe wrapperBean
     *
     * @param bean 参数对象
     * @return
     * @author Jia wei Wu
     * @date 2022/1/9 1:12 下午
     **/
    public static <T> LambdaSetValueBasicComparison<T> lambdaWrapperBeanIgnoreEmpty(T bean) {
        return new LambdaSetBeanIgnoreEmptyBasicComparison<T>(bean) {
        };
    }

}
